package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

import java.util.List;

/**
 * 作者：SimGa
 * 日期：2021/2/3
 * 时间：18:45
 * 包名：com.vitabuybuy.tv.dto
 */
public class MyCollectListDto {

    /**
     * thumbnail : http://106.55.47.138/attachment/jpg/4181/768_18149.jpg
     * originalPrice : 12.0
     * salePrice : 10.0
     * regionName : {"EN":"Guangzhou Guangzhou Guangzhou","CN":"广州 广州 广州","MA":"Guangzhou Guangzhou Guangzhou"}
     * attributeList : [{"valueList":[{"id":277,"text":"{\"EN\":\"原味\",\"CN\":\"原味\",\"MA\":\"原味\"}"},{"id":278,"text":"{\"EN\":\"甜味\",\"CN\":\"甜味\",\"MA\":\"甜味\"}"}],"name":"{\"EN\":\"口味\",\"CN\":\"口味\",\"MA\":\"口味\"}","ordinary":false,"id":143,"type":"text"},{"valueList":[{"id":159,"text":"{\"EN\":\"large\",\"CN\":\"大\",\"MA\":\"large\"}"},{"id":160,"text":"{\"EN\":\"mid\",\"CN\":\"中\",\"MA\":\"mid\"}"},{"id":161,"text":"{\"EN\":\"small\",\"CN\":\"小\",\"MA\":\"small\"}"},{"id":171,"text":"{\"EN\":\"bag\",\"CN\":\"袋装\",\"MA\":\"bag\"}"},{"id":172,"text":"{\"EN\":\"box\",\"CN\":\"盒装\",\"MA\":\"box\"}"}],"name":"{\"EN\":\"size\",\"CN\":\"大小\",\"MA\":\"size\"}","ordinary":false,"id":83,"type":"text"}]
     * name : {"EN":"milk","CN":"牛奶","MA":"milk"}
     * goodsList : [{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"159-278","originalPrice":12,"salePrice":10,"id":436,"specifications":"{\"EN\":\"large 甜味\",\"CN\":\"大 甜味\",\"MA\":\"large 甜味\"}","stocks":3},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"159-277","originalPrice":12,"salePrice":10,"id":435,"specifications":"{\"EN\":\"large 原味\",\"CN\":\"大 原味\",\"MA\":\"large 原味\"}","stocks":0},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"160-277","originalPrice":12,"salePrice":10,"id":437,"specifications":"{\"EN\":\"mid 原味\",\"CN\":\"中 原味\",\"MA\":\"mid 原味\"}","stocks":0},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"160-278","originalPrice":12,"salePrice":10,"id":438,"specifications":"{\"EN\":\"mid 甜味\",\"CN\":\"中 甜味\",\"MA\":\"mid 甜味\"}","stocks":0},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"172-277","originalPrice":12,"salePrice":10,"id":443,"specifications":"{\"EN\":\"box 原味\",\"CN\":\"盒装 原味\",\"MA\":\"box 原味\"}","stocks":3},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"172-278","originalPrice":12,"salePrice":10,"id":444,"specifications":"{\"EN\":\"box 甜味\",\"CN\":\"盒装 甜味\",\"MA\":\"box 甜味\"}","stocks":3},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"171-278","originalPrice":12,"salePrice":10,"id":442,"specifications":"{\"EN\":\"bag 甜味\",\"CN\":\"袋装 甜味\",\"MA\":\"bag 甜味\"}","stocks":3},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"161-278","originalPrice":12,"salePrice":10,"id":440,"specifications":"{\"EN\":\"small 甜味\",\"CN\":\"小 甜味\",\"MA\":\"small 甜味\"}","stocks":3},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"171-277","originalPrice":12,"salePrice":10,"id":441,"specifications":"{\"EN\":\"bag 原味\",\"CN\":\"袋装 原味\",\"MA\":\"bag 原味\"}","stocks":3},{"image":"http://106.55.47.138/attachment/jpg/4181/768_18149.jpg","code":"161-277","originalPrice":12,"salePrice":10,"id":439,"specifications":"{\"EN\":\"small 原味\",\"CN\":\"小 原味\",\"MA\":\"small 原味\"}","stocks":3}]
     * id : 63
     * store : {"name":"马来西亚潮男装卖店","logo":"http://106.55.47.138/attachment/jpg/4052/793_15950.jpg","id":12}
     */

    private ProductBean product;
    private int id;
    private boolean isChecked;

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static class ProductBean {
        private String thumbnail;
        private double originalPrice;
        private double salePrice;
        private String regionName;
        private String name;
        private int id;
        /**
         * name : 马来西亚潮男装卖店
         * logo : http://106.55.47.138/attachment/jpg/4052/793_15950.jpg
         * id : 12
         */

        private StoreBean store;
        /**
         * valueList : [{"id":277,"text":"{\"EN\":\"原味\",\"CN\":\"原味\",\"MA\":\"原味\"}"},{"id":278,"text":"{\"EN\":\"甜味\",\"CN\":\"甜味\",\"MA\":\"甜味\"}"}]
         * name : {"EN":"口味","CN":"口味","MA":"口味"}
         * ordinary : false
         * id : 143
         * type : text
         */

        private List<GoodsDetailsDto.AttributeListBean> attributeList;
        /**
         * image : http://106.55.47.138/attachment/jpg/4181/768_18149.jpg
         * code : 159-278
         * originalPrice : 12.0
         * salePrice : 10.0
         * id : 436
         * specifications : {"EN":"large 甜味","CN":"大 甜味","MA":"large 甜味"}
         * stocks : 3
         */

        private List<GoodsDetailsDto.GoodsListBean> goodsList;

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public double getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(double originalPrice) {
            this.originalPrice = originalPrice;
        }

        public double getSalePrice() {
            return salePrice;
        }

        public void setSalePrice(double salePrice) {
            this.salePrice = salePrice;
        }

        public String getRegionName() {
            return LanaugeUtils.returnStrByLocation(regionName);
        }

        public void setRegionName(String regionName) {
            this.regionName = regionName;
        }

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public StoreBean getStore() {
            return store;
        }

        public void setStore(StoreBean store) {
            this.store = store;
        }

        public List<GoodsDetailsDto.AttributeListBean> getAttributeList() {
            return attributeList;
        }

        public void setAttributeList(List<GoodsDetailsDto.AttributeListBean> attributeList) {
            this.attributeList = attributeList;
        }

        public List<GoodsDetailsDto.GoodsListBean> getGoodsList() {
            return goodsList;
        }

        public void setGoodsList(List<GoodsDetailsDto.GoodsListBean> goodsList) {
            this.goodsList = goodsList;
        }

        public static class StoreBean {
            private String name;
            private String logo;
            private int id;

            public String getName() {
                return LanaugeUtils.returnStrByLocation(name);
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getLogo() {
                return logo;
            }

            public void setLogo(String logo) {
                this.logo = logo;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }
        }

        public static class AttributeListBean {
            private String name;
            private boolean ordinary;
            private int id;
            private String type;
            /**
             * id : 277
             * text : {"EN":"原味","CN":"原味","MA":"原味"}
             */

            private List<ValueListBean> valueList;

            public String getName() {
                return LanaugeUtils.returnStrByLocation(name);
            }

            public void setName(String name) {
                this.name = name;
            }

            public boolean isOrdinary() {
                return ordinary;
            }

            public void setOrdinary(boolean ordinary) {
                this.ordinary = ordinary;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public List<ValueListBean> getValueList() {
                return valueList;
            }

            public void setValueList(List<ValueListBean> valueList) {
                this.valueList = valueList;
            }

            public static class ValueListBean {
                private int id;
                private String text;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getText() {
                    return LanaugeUtils.returnStrByLocation(text);
                }

                public void setText(String text) {
                    this.text = text;
                }
            }
        }

        public static class GoodsListBean {
            private String image;
            private String code;
            private double originalPrice;
            private double salePrice;
            private int id;
            private String specifications;
            private int stocks;

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public double getOriginalPrice() {
                return originalPrice;
            }

            public void setOriginalPrice(double originalPrice) {
                this.originalPrice = originalPrice;
            }

            public double getSalePrice() {
                return salePrice;
            }

            public void setSalePrice(double salePrice) {
                this.salePrice = salePrice;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getSpecifications() {
                return LanaugeUtils.returnStrByLocation(specifications);
            }

            public void setSpecifications(String specifications) {
                this.specifications = specifications;
            }

            public int getStocks() {
                return stocks;
            }

            public void setStocks(int stocks) {
                this.stocks = stocks;
            }
        }
    }
}
